<#include "/java_copyright.include">
<#assign className = table.className>
<#assign classNameLower = className?uncap_first>
package ${basePackage}.mapper.${module};

import java.util.List;
import org.apache.ibatis.annotations.Param;

import ${basePackage}.po.${module}.${className}PO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
<#include "/java_description.include">
 */
public interface ${className}Mapper extends BaseMapper<${className}PO>{

	// 通过id查询单个对象
    ${className}PO queryById(${className}PO ${classNameLower});

    // 通过id查询单个对象
    ${className}PO queryById(@Param("id") Integer id);

	// 通过条件查询单个对象
    ${className}PO queryOne(${className}PO ${classNameLower});

    // 查询全部
    List<${className}PO> queryList(${className}PO ${classNameLower});

    // 查询总数
    int queryCount(${className}PO ${classNameLower});

    // 可选新增
    int insertSelective(${className}PO ${classNameLower});

    // 批量新增
    int insertBatch(List<${className}PO> list);

    // 更新
    int updateById(${className}PO ${classNameLower});

    // 删除
    int updateDel(${className}PO ${classNameLower});

}
